/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package topico2;

import java.util.Scanner;

/**
 *
 * @author leovirgilio
 */
public class TestaCidade {

    public static void main(String args[]) {

        Scanner sc = new Scanner(System.in);


        Endereco end1 = new Endereco("Avenida Getulio Vargas", 123, "86300000", "Cornelio Procopio", "PR");
        Endereco end2 = new Endereco("Rua Diogo Camargo Parra", 15, "86300000", "Cornelio Procopio", "PR");
        Endereco end3 = new Endereco("Al dos Expedicionarios", 949, "17800000", "Adamantina", "SP");

        Endereco v[] = new Endereco[10];
        v[0] = end1;
        v[1] = end2;
        v[2] = end3;

        for (int i = 0; i < v.length && v[i] != null; i++) {
            System.out.println(i + 1 + " : " + v[i]);
        }
        System.out.println("Qual endere?...: ");
        int pos = sc.nextInt();

       // Cliente cli1 = new Cliente(123, "Leonardo", v[pos - 1]);
    }
}
